export default {
  /**
   * 通知、公告涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   * 090110001---获取通知、公告信息
   *
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {string}  noticeType            类型（1、通知、2、公告）
   *
   */


  "POST /sys/noticeinfo/list": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            noticeId:"1",
            noticeTitle: "通知标题XXX1",
            creator: "张三",
            isTop:true,
            createTime:1515554892000,
          },
          {
            noticeId:"2",
            noticeTitle: "通知标题XXX1",
            creator: "张三",
            isTop:false,
            createTime:1515554892000,
          }
        ]
      }
    });
  },

  /**
   * 090110002---新增通知
   * @param  {string}  noticeTitle     标题
   * @param  {string}  noticeCon       内容
   * @param  {string}  noticeType      类型（1、通知、2、公告）
   * @param  {string}  noticeClass     通知、公告的总类，新增字段，来源数据字典
   * @param  {string}  isTop           是否置顶
   * @param  {string}  fileTokenArray  附件
   * @param  {array}   maintenanceId   发送单位（仅通知时有效）数组支持多个，不传时代表全部
   *

   */
  "POST /sys/noticeinfo/save": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 090110003---编辑通知
   * @param  {string}  noticeId        通知id
   * @param  {string}  noticeTitle     标题
   * @param  {string}  noticeCon       内容
   * @param  {string}  noticeType      类型（1、通知、2、公告）
   * @param  {string}  isTop           是否置顶
   * @param  {string}  fileTokenArray  附件
   * @param  {array}   maintenanceId   发送单位（仅通知时有效）数组支持多个，不传时代表全部

   */
  "POST /sys/noticeinfo/update": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },

  /**
   * 090110004---获取通知详情
   * @param  {string}  noticeId            通知ID
   */
  "POST /sys/noticeinfo/info": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        noticeId:"1",
        noticeTitle:"公告通知标题XXX",
        noticeCon:"<p>fdada</p><h1>dfadadaf</h1>",
        noticeType:"H001",
        noticeClass:"01",
        isTop:true,
        creator: "张三",
        createTime:1515554892000,
        maintenanceId:"1",
        maintenanceName:"海康为啥",
      },
      noticeFilePath:[{
        uid: 'I100000000113',
        name: '211841154.jpg',
        url: 'http://www.qqzhi.com/uploadpic/2015-02-02/211841154.jpg',
      },{
        uid: 'I100000000114',
        name: '211841154.jpg',
        url: 'http://www.qqzhi.com/uploadpic/2015-02-02/211841154.jpg',
      }]
    });
  },



  /**
   * 090110005---删除
   * @param  {array}   noticeId          通知ID
   */
  "POST /sys/noticeinfo/delete": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },




};
